package com.shanling.shanlingcontroller.persenter.contract;

import android.app.Activity;
import android.bluetooth.BluetoothDevice;
import android.content.Context;

import com.shanling.shanlingcontroller.persenter.BasePersenter;
import com.shanling.shanlingcontroller.ui.BaseView;

/**
 * Created by ch1 on 2019/10/12.
 */

public interface BleContract {

    interface View extends BaseView {
        void getPermissonSuccess();
        void getPermissonFaild();
    }
    interface Presenter extends BasePersenter<View> {
        void checkAppPermission(Activity activity);
        void doConnectA2dp(BluetoothDevice device);
        void doBand(BluetoothDevice device,int type, Context context);
        void doConnectSpp(BluetoothDevice device, int type, Context context);
        void onFinish();

    }
}
